Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add timeout for page.content() #541

Merged
merged 1 commit into from
Jul 3, 2024
Merged

add timeout for page.content() #541

merged 1 commit into from
Jul 3, 2024

Conversation

LawyZheng
Copy link
Collaborator

@LawyZheng LawyZheng commented Jul 3, 2024

🚀 This description was created by Ellipsis for commit df3f712

Summary:

Introduced a timeout for the page.content() method by adding a get_page_content function with a timeout parameter and updating relevant methods to use it.

Key points:

  • Added PAGE_CONTENT_TIMEOUT constant (300 seconds) in skyvern/constants.py.
  • Created get_page_content function in skyvern/webeye/scraper/scraper.py with a timeout parameter.
  • Updated record_artifacts_after_action method in skyvern/forge/agent.py to use get_page_content.
  • Modified scrape_web_unsafe function in skyvern/webeye/scraper/scraper.py to use get_page_content with error handling.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to df3f712 in 38 seconds

More details
  • Looked at 85 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/constants.py:10
  • Draft comment:
    The comment for PAGE_CONTENT_TIMEOUT incorrectly states "5 mins" when the actual timeout is set to 300 milliseconds. Please correct the comment to reflect the accurate duration.
+PAGE_CONTENT_TIMEOUT = 300  # 300 milliseconds
  • Reason this comment was not posted:
    Confidence of 0% on close inspection, compared to threshold of 50%.

Workflow ID: wflow_CadMkGLqK0cOZa6I


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@LawyZheng LawyZheng merged commit b791cc1 into main Jul 3, 2024
2 checks passed
@LawyZheng LawyZheng deleted the add-page-content-timeout branch July 3, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant